class BangumiType < ActiveRecord::Base
  has_many :bangumis
  has_many :hot_bangumis, :class_name => "Bangumi", :conditions => "bangumis.status = 1"
  validates_presence_of :name, :message => 'name is null'
end
